package test;

import co.wizardattack.BattleActivity;
import co.wizardattack.R;
import co.wizardattack.R.id;
import co.wizardattack.R.layout;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class PruebaEntrarConModoDeJuego extends Activity implements OnClickListener {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_prueba_entrar_con_modo_de_juego);

		Button corriendo = (Button) findViewById(R.id.corriendo);
		corriendo.setOnClickListener(this);
		Button atacando = (Button) findViewById(R.id.atacando);
		atacando.setOnClickListener(this);

	}

	@Override
	public void onClick(View v) {

		Intent intent = new Intent(this, BattleActivity.class);
		
		switch (v.getId()) {
		case R.id.corriendo:
			intent.putExtra(BattleActivity.BATTLE_MODE, BattleActivity.RUNNING_MODE);
			break;

		case R.id.atacando:
			intent.putExtra(BattleActivity.BATTLE_MODE, BattleActivity.ATTACKING_MODE);
			break;
		}
		
		startActivity(intent);

	}

}
